﻿using DXApplicationTangche.Utils;
using mendian;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DXApplicationTangche.service
{
    /// <summary>
    /// 资源服务
    /// </summary>
    class ResourceService
    {
        /// <summary>
        /// 同步图片资源到本地
        /// </summary>
        public static void synPictureResouces()
        {
            if (!Directory.Exists(@"xml"))
            {
                Directory.CreateDirectory(@"xml");
            }
            if (!Directory.Exists(@"pic"))
            {
                Directory.CreateDirectory(@"pic");
            }
            if (!Directory.Exists(@"doc"))
            {
                Directory.CreateDirectory(@"doc");
            }
            if (!Directory.Exists(@"tag"))
            {
                Directory.CreateDirectory(@"tag");
            }
            if (!Directory.Exists(@"pic"))
            {
                Directory.CreateDirectory(@"pic");
            }
            if (!Directory.Exists(@"pdf"))
            {
                Directory.CreateDirectory(@"pdf");
            }
        }
    }
}
